cell renderer progress: Avoid warnings
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 04:04:38 +0000 (23:04 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 05:13:20 +0000 (00:13 -0500)
Use the right state when calling gtk_style_context_get_padding,
to avoid warnings.

gtk/gtkcellrendererprogress.c

index 55e2d0c4a566058091a8f7c8b82951a4a5181b09..260ed2d8fec94a6ea48273c1e1b41ec63b6f1aef 100644 (file)
@@ -577,7 +577,7 @@ gtk_cell_renderer_progress_render (GtkCellRenderer      *cell,
   gtk_render_background (context, cr, x, y, w, h);
   gtk_render_frame (context, cr, x, y, w, h);
 
-  gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL, &padding);
+  gtk_style_context_get_padding (context, gtk_style_context_get_state (context), &padding);
 
   x += padding.left;
   y += padding.top;